﻿#pragma once

#include <QtWidgets/QWidget>
#include "ui_VisualizeDataServer.h"
#include "customControl/framelesscore/framelesswidget.h"
QT_BEGIN_NAMESPACE
namespace Ui { class VisualizeDataServerClass; };
QT_END_NAMESPACE

class VisualizeDataServer : public FramelessWidget
{
    Q_OBJECT

public:
    VisualizeDataServer(QWidget *parent = nullptr);
    ~VisualizeDataServer();
protected:
    virtual bool event(QEvent* event)override;
    virtual void contextMenuEvent(QContextMenuEvent* event) override;
    virtual void keyPressEvent(QKeyEvent* event) override;

    virtual void mouseMoveEvent(QMouseEvent* event) override;
    virtual void mousePressEvent(QMouseEvent* event) override;
    virtual void mouseReleaseEvent(QMouseEvent* event)override;

public slots:
	void showSocketSetting();
    void exitApp();
private:
    Ui::VisualizeDataServerClass *ui;
    struct Internal;
    Internal* p;

    QPoint mousePoint;
    bool mouse_press;
};
